load Archive
abstract suspend fun loadArchive(archiveUri: Uri, overrideEditorConfig: Boolean = false, waitForResources: Boolean = false, onProgress: (Int) -> Unit? = null): DesignBlock
Load the contents of a scene previously saved as an archive.
Cancelling the coroutine stops the download, and the current scene stays.
Return
the handle to the loaded scene.
Parameters
archive Uri
the resource of the scene archive file.
override Editor Config
Whether to override editor configuration with settings and data from the scene file. Defaults to false.
wait For Resources
Whether to wait for all resources to finish loading before returning. Defaults to false.
on Progress
Optional. Receives the percentage of the archive that the engine has read, from 0 to 100, as described for the load function that takes a Uri.